home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / HyperTalk / RegionPackage / editScript XFCN / editScript XFCN / background_2781.xml next >
Encoding:
Extensible Markup Language  |  1990-12-10  |  7.3 KB  |  233 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2781</id>
  5.     <filler1>0</filler1>
  6.     <cantDelete> <false /> </cantDelete>
  7.     <showPict> <true /> </showPict>
  8.     <dontSearch> <false /> </dontSearch>
  9.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  10.     <part>
  11.         <id>2</id>
  12.         <type>field</type>
  13.         <visible> <true /> </visible>
  14.         <dontWrap> <false /> </dontWrap>
  15.         <dontSearch> <false /> </dontSearch>
  16.         <sharedText> <false /> </sharedText>
  17.         <fixedLineHeight> <false /> </fixedLineHeight>
  18.         <autoTab> <false /> </autoTab>
  19.         <lockText> <true /> </lockText>
  20.         <rect>
  21.             <left>5</left>
  22.             <top>42</top>
  23.             <right>410</right>
  24.             <bottom>219</bottom>
  25.         </rect>
  26.         <style>opaque</style>
  27.         <autoSelect> <false /> </autoSelect>
  28.         <showLines> <false /> </showLines>
  29.         <wideMargins> <true /> </wideMargins>
  30.         <multipleLines> <false /> </multipleLines>
  31.         <reservedFamily> 0 </reservedFamily>
  32.         <titleWidth>0</titleWidth>
  33.         <icon>0</icon>
  34.         <textAlign>left</textAlign>
  35.         <font>Palatino</font>
  36.         <textSize>12</textSize>
  37.         <textStyle>plain</textStyle>
  38.         <textHeight>16</textHeight>
  39.         <name>Text</name>
  40.         <script></script>
  41.     </part>
  42.     <part>
  43.         <id>3</id>
  44.         <type>field</type>
  45.         <visible> <true /> </visible>
  46.         <dontWrap> <false /> </dontWrap>
  47.         <dontSearch> <false /> </dontSearch>
  48.         <sharedText> <false /> </sharedText>
  49.         <fixedLineHeight> <false /> </fixedLineHeight>
  50.         <autoTab> <false /> </autoTab>
  51.         <lockText> <false /> </lockText>
  52.         <rect>
  53.             <left>159</left>
  54.             <top>224</top>
  55.             <right>260</right>
  56.             <bottom>239</bottom>
  57.         </rect>
  58.         <style>opaque</style>
  59.         <autoSelect> <false /> </autoSelect>
  60.         <showLines> <false /> </showLines>
  61.         <wideMargins> <false /> </wideMargins>
  62.         <multipleLines> <false /> </multipleLines>
  63.         <reservedFamily> 0 </reservedFamily>
  64.         <titleWidth>0</titleWidth>
  65.         <icon>0</icon>
  66.         <textAlign>center</textAlign>
  67.         <font>Palatino</font>
  68.         <textSize>10</textSize>
  69.         <textStyle>plain</textStyle>
  70.         <textHeight>13</textHeight>
  71.         <name>Page</name>
  72.         <script></script>
  73.     </part>
  74.     <part>
  75.         <id>6</id>
  76.         <type>button</type>
  77.         <visible> <true /> </visible>
  78.         <reserved5> 0 </reserved5>
  79.         <reserved4> 0 </reserved4>
  80.         <reserved3> 0 </reserved3>
  81.         <reserved2> 0 </reserved2>
  82.         <reserved1> 0 </reserved1>
  83.         <enabled> <true /> </enabled>
  84.         <rect>
  85.             <left>395</left>
  86.             <top>219</top>
  87.             <right>416</right>
  88.             <bottom>240</bottom>
  89.         </rect>
  90.         <style>opaque</style>
  91.         <showName> <false /> </showName>
  92.         <highlight> <false /> </highlight>
  93.         <autoHighlight> <false /> </autoHighlight>
  94.         <sharedHighlight> <true /> </sharedHighlight>
  95.         <family>0</family>
  96.         <titleWidth>0</titleWidth>
  97.         <icon>8419</icon>
  98.         <textAlign>center</textAlign>
  99.         <font>Chicago</font>
  100.         <textSize>12</textSize>
  101.         <textStyle>plain</textStyle>
  102.         <name>Next</name>
  103.         <script>on mouseDown
  104. global curBg
  105.  
  106. put the id of this bg into curBg
  107. send mouseStillDown to me
  108. end mouseDown
  109.  
  110. on mouseStillDown
  111. global curBg
  112.  
  113. if the id of this bg is curBg then
  114. visual effect wipe left
  115. if the id of this cd is the id of the last cd of this bg then
  116. go first cd
  117. else
  118. go next card
  119. end if
  120. end if
  121. end mouseStillDown</script>
  122.     </part>
  123.     <part>
  124.         <id>7</id>
  125.         <type>button</type>
  126.         <visible> <true /> </visible>
  127.         <reserved5> 0 </reserved5>
  128.         <reserved4> 0 </reserved4>
  129.         <reserved3> 0 </reserved3>
  130.         <reserved2> 0 </reserved2>
  131.         <reserved1> 0 </reserved1>
  132.         <enabled> <true /> </enabled>
  133.         <rect>
  134.             <left>369</left>
  135.             <top>219</top>
  136.             <right>390</right>
  137.             <bottom>240</bottom>
  138.         </rect>
  139.         <style>transparent</style>
  140.         <showName> <false /> </showName>
  141.         <highlight> <false /> </highlight>
  142.         <autoHighlight> <false /> </autoHighlight>
  143.         <sharedHighlight> <true /> </sharedHighlight>
  144.         <family>0</family>
  145.         <titleWidth>0</titleWidth>
  146.         <icon>28022</icon>
  147.         <textAlign>center</textAlign>
  148.         <font>Chicago</font>
  149.         <textSize>12</textSize>
  150.         <textStyle>plain</textStyle>
  151.         <name>Intro</name>
  152.         <script>on mouseUp
  153. visual effect dissolve to gray
  154. visual effect dissolve
  155. go to stack "Start Here"
  156. end mouseUp</script>
  157.     </part>
  158.     <part>
  159.         <id>8</id>
  160.         <type>button</type>
  161.         <visible> <true /> </visible>
  162.         <reserved5> 0 </reserved5>
  163.         <reserved4> 0 </reserved4>
  164.         <reserved3> 0 </reserved3>
  165.         <reserved2> 0 </reserved2>
  166.         <reserved1> 0 </reserved1>
  167.         <enabled> <true /> </enabled>
  168.         <rect>
  169.             <left>0</left>
  170.             <top>219</top>
  171.             <right>21</right>
  172.             <bottom>240</bottom>
  173.         </rect>
  174.         <style>opaque</style>
  175.         <showName> <false /> </showName>
  176.         <highlight> <false /> </highlight>
  177.         <autoHighlight> <false /> </autoHighlight>
  178.         <sharedHighlight> <true /> </sharedHighlight>
  179.         <family>0</family>
  180.         <titleWidth>0</titleWidth>
  181.         <icon>17779</icon>
  182.         <textAlign>center</textAlign>
  183.         <font>Chicago</font>
  184.         <textSize>12</textSize>
  185.         <textStyle>plain</textStyle>
  186.         <name>Prev</name>
  187.         <script>on mouseDown
  188. global curBg
  189.  
  190. put the id of this bg into curBg
  191. send mouseStillDown to me
  192. end mouseDown
  193.  
  194. on mouseStillDown
  195. global curBg
  196.  
  197. if the id of this bg is curBg then
  198. visual effect wipe right
  199. if the id of this cd is the id of the first cd of this bg then
  200. go first cd
  201. else
  202. go prev card
  203. end if
  204. end if
  205. end mouseStillDown</script>
  206.     </part>
  207.     <part>
  208.         <id>9</id>
  209.         <type>field</type>
  210.         <visible> <true /> </visible>
  211.         <dontWrap> <false /> </dontWrap>
  212.         <dontSearch> <false /> </dontSearch>
  213.         <sharedText> <false /> </sharedText>
  214.         <fixedLineHeight> <false /> </fixedLineHeight>
  215.         <autoTab> <false /> </autoTab>
  216.         <lockText> <true /> </lockText>
  217.         <rect>
  218.             <left>5</left>
  219.             <top>5</top>
  220.             <right>412</right>
  221.             <bottom>39</bottom>
  222.         </rect>
  223.         <style>shadow</style>
  224.         <autoSelect> <false /> </autoSelect>
  225.         <showLines> <false /> </showLines>
  226.         <wideMargins> <true /> </wideMargins>
  227.         <multipleLines> <false /> </multipleLines>
  228.         <reservedFamily> 0 </reservedFamily>
  229.         <titleWidth>0</titleWidth>
  230.         <icon>0</icon>
  231.         <textAlign>left</textAlign>
  232.         <font>Palatino</font>
  233.         <textSize>24</textSize>
  234.         <textStyle>bold</textStyle>
  235.         <textHeight>32</textHeight>
  236.         <name>Title</name>
  237.         <script>on mouseDown
  238. if the optionKey is down
  239. then
  240. set the visible of bg btn "Lock" to not the visible of bg btn "Lock"
  241. end if
  242. end mouseDown</script>
  243.     </part>
  244.     <part>
  245.         <id>10</id>
  246.         <type>button</type>
  247.         <visible> <false /> </visible>
  248.         <reserved5> 0 </reserved5>
  249.         <reserved4> 0 </reserved4>
  250.         <reserved3> 0 </reserved3>
  251.         <reserved2> 0 </reserved2>
  252.         <reserved1> 0 </reserved1>
  253.         <enabled> <true /> </enabled>
  254.         <rect>
  255.             <left>61</left>
  256.             <top>221</top>
  257.             <right>112</right>
  258.             <bottom>237</bottom>
  259.         </rect>
  260.         <style>checkbox</style>
  261.         <showName> <true /> </showName>
  262.         <highlight> <true /> </highlight>
  263.         <autoHighlight> <true /> </autoHighlight>
  264.         <sharedHighlight> <true /> </sharedHighlight>
  265.         <family>0</family>
  266.         <titleWidth>0</titleWidth>
  267.         <icon>0</icon>
  268.         <textAlign>center</textAlign>
  269.         <font>Chicago</font>
  270.         <textSize>12</textSize>
  271.         <textStyle>plain</textStyle>
  272.         <name>Lock</name>
  273.         <script>on mouseUp
  274. set the lockText of fld "Text" to the hilite of me
  275. set the lockText of fld "Title" to the hilite of me
  276. end mouseUp</script>
  277.     </part>
  278.     <name></name>
  279.     <script>on openCard
  280. put "Page" && (the number of this card - the number of the first cd of this bg + 1) ¬¨
  281. && "of" && the number of cards in this bg into fld "Page"
  282. end openCard
  283.  
  284. on arrowKey which
  285. if which is "left" then
  286. send mouseDown to bg btn "Prev"
  287. else
  288. if which is "Right" then
  289. send mouseDown to bg btn "Next"
  290. else
  291. pass arrowKey
  292. end if
  293. end if
  294. end arrowKey</script>
  295. </background>
  296.